package com.example.yjh_trans.fragment;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.RecyclerView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.lib_mvp.arouter.path.ArouterPath;
import com.example.lib_mvp.base.mvp.BaseMvpFragment;
import com.example.yjh_trans.R;
import com.example.yjh_trans.presenter.TransPresenter;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

@Route(path = ArouterPath.TRANS_TRANS_FRAGMENT)
public class TransFragment extends BaseMvpFragment<TransPresenter> implements View.OnClickListener {
    public View view;
    public LinearLayout toolsSearchLly;
    public ImageView transTakePhotoImg;
    public RecyclerView transCharListRv;
    public SmartRefreshLayout refreshLayout;
    public ImageView transTscyImg;
    public TextView transTouchChTv;
    public ImageView transILangImg;
    public TextView transTouchEnTv;
    public ImageView transYouLangImg;
    public LinearLayout linearLayout7;
    public ConstraintLayout transFragment;

    @Override
    public TransPresenter getPresenter() {
        return new TransPresenter();
    }

    @Override
    public void intPresenter() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.hd_gj_page_trans_fragment;
    }

    @Override
    protected void initView() {
        initViews();
    }

    @Override
    protected void initData() {

    }

    private void initViews() {
        view = findViewById(R.id.view);
        toolsSearchLly = findViewById(R.id.tools_search_lly);
        transTakePhotoImg = findViewById(R.id.trans_take_photo_img);
        transCharListRv = findViewById(R.id.trans_char_list_rv);
        refreshLayout = findViewById(R.id.refreshLayout);
        transTscyImg = findViewById(R.id.trans_tscy_img);
        transTouchChTv = findViewById(R.id.trans_touch_ch_tv);
        transILangImg = findViewById(R.id.trans_i_lang_img);
        transTouchEnTv = findViewById(R.id.trans_touch_en_tv);
        transYouLangImg = findViewById(R.id.trans_you_lang_img);
        linearLayout7 = findViewById(R.id.linearLayout7);
        transFragment = findViewById(R.id.trans_fragment);
        toolsSearchLly.setOnClickListener(this);
        transTakePhotoImg.setOnClickListener(this);
        transTscyImg.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        int id = view.getId();
        if (id == R.id.tools_search_lly) {

        } else if (id == R.id.trans_take_photo_img) {

        } else if (id == R.id.trans_tscy_img) {

        }
    }
}
